#include "robotgraplord.h"
#include <QThread>

RobotGrapLord::RobotGrapLord(Player* player, QObject *parent) : QObject(parent), QRunnable()
{
    m_player = player;
    // 设置任务类执行完毕后自动销毁
    setAutoDelete(true);
}

// 叫地主
void RobotGrapLord::run()
{
    QThread::msleep(1000); // 为了实现机器人玩家思考的过程，需要此线程休眠2s
    m_player->thinkCallLord();
}
